package com.scm.biz.bean;

import net.sf.json.JSONObject;

public class ProofingPatternSize {
    private Long id;

    private String color;

    private Integer xsAmount;

    private Integer sAmount;

    private Integer mAmount;

    private Integer lAmount;

    private Integer xlAmount;

    private Integer xxlAmount;

    private Long proofingPatternId;
    
    public ProofingPatternSize() {
	}

    public ProofingPatternSize(JSONObject obj) {
    	this.color=obj.getString("color");
    	if(!obj.getString("xs").trim().isEmpty()) this.xsAmount=obj.getInt("xs");
    	if(!obj.getString("s").trim().isEmpty()) this.sAmount=obj.getInt("s");
    	if(!obj.getString("m").trim().isEmpty()) this.mAmount=obj.getInt("m");
    	if(!obj.getString("l").trim().isEmpty()) this.lAmount=obj.getInt("l");
    	if(!obj.getString("xl").trim().isEmpty()) this.xlAmount=obj.getInt("xl");
	}

	public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public Integer getXsAmount() {
        return xsAmount;
    }

    public void setXsAmount(Integer xsAmount) {
        this.xsAmount = xsAmount;
    }

    public Integer getsAmount() {
        return sAmount;
    }

    public void setsAmount(Integer sAmount) {
        this.sAmount = sAmount;
    }

    public Integer getmAmount() {
        return mAmount;
    }

    public void setmAmount(Integer mAmount) {
        this.mAmount = mAmount;
    }

    public Integer getlAmount() {
        return lAmount;
    }

    public void setlAmount(Integer lAmount) {
        this.lAmount = lAmount;
    }

    public Integer getXlAmount() {
        return xlAmount;
    }

    public void setXlAmount(Integer xlAmount) {
        this.xlAmount = xlAmount;
    }

    public Integer getXxlAmount() {
        return xxlAmount;
    }

    public void setXxlAmount(Integer xxlAmount) {
        this.xxlAmount = xxlAmount;
    }

    public Long getProofingPatternId() {
        return proofingPatternId;
    }

    public void setProofingPatternId(Long proofingPatternId) {
        this.proofingPatternId = proofingPatternId;
    }
}